<?php

class Authority_manage  extends AdminManage
{
	/**
	 * 初始化
	 */
	public function _init()
	{

	}

	/**
	 * 默认动作
	 */
	protected function _default()
	{
		$this->assign('menu_navbar','系统管理  -- <a href="'.$_GET['action'].'.html">权限管理</a>');
        $strWhereTopMenuID = " < 1000 and isshow = 1";  //顶级菜单 lee
        $strWhereSubMenudId = " > 10000 and isshow = 1"; //下级菜单  lee
        $sql =  "select id,menuId,menuName from menu where menuId ";  //menuID设置为索引
        $menuParentList = DB::select($sql.$strWhereTopMenuID);
        foreach(DB::select($sql.$strWhereSubMenudId) as $value){
            $menuChildList[substr($value['MENUID'],0,3)][] = $value;
        }

        $this->assign('menuParentList',$menuParentList);
        $this->assign('menuChildList',$menuChildList);
        
        /*
        if ($_SERVER["REQUEST_METHOD"] == "POST"){ 
            $checkArr = $_POST['check'];
            
        }*/
        
        
		$this->tpl_full_path('/admins/manage/authority');
	}
	
	
	
	/**
	**添加业务员
	**/
	public function _add()
	{
        $this->assign('menu_navbar','业务人员管理  -- <a href="'.$_GET['action'].'.html">新增业务员</a>');
		$this->tpl_full_path('/admins/salesman_manage/add_form');
	}




}
?>
